Skip to content

Phase 1b: Add maturin build backend and PyO3 bridge stub - #28

Merged
zackees merged 1 commit into
mainfrom
rust/phase-1b-maturin
Apr 12, 2026
Merged

zackees merged 1 commit into
mainfrom
rust/phase-1b-maturin

Conversation

@zackees

@zackees zackees commented Apr 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Switch [build-system] from setuptools to maturin>=1.7,<2
  • Add [tool.maturin] section wiring crates/fastled-py as fastled._native
  • Add guarded from fastled._native import version as _native_version import in __init__.py
  • Delete setup.py (superseded by maturin)
  • Add uv pip install "maturin>=1.7,<2" step in install script

Closes #16

Test plan

  • uv pip install -e . builds the Rust cdylib via maturin (14s on first build, cached after)
  • uv run python -c "from fastled._native import version; print(version())" prints 2.0.6
  • bash lint — 0 errors, 0 warnings (cargo fmt + clippy + ruff + black + isort + pyright all pass)
  • bash test — all 121 Python tests pass

Switch build-system from setuptools to maturin>=1.7, wire up
crates/fastled-py via [tool.maturin], expose fastled._native.version()
to Python with a guarded import in __init__.py, and remove setup.py.
@zackees
zackees merged commit 2c59f57 into main Apr 12, 2026
2 of 9 checks passed
@zackees
zackees deleted the rust/phase-1b-maturin branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 1b: Add maturin build backend and PyO3 bridge stub

1 participant